﻿using Bible.Core.Interface;
using Bible.Core.Model;
using System.Collections.Generic;
using System.Linq;

namespace Bible.Data.Repository
{
    public class BookRepository : IBookRepository
    {
        public IBook GetByTitle(string title)
        {
            return new Book(title);
        }

        public IQueryable<IBook> GetAll()
        {
            var books = new List<IBook>();
            for (int i = 0; i < 66; i++)
            {
                books.Add(new Book());
            }
            return books.AsQueryable<IBook>();
        }
    }
}